<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-integralSplc-add">
			<!--<div class="form-group">
				<label class="col-sm-3 control-label">审批流程名称：</label>
				<div class="col-sm-8">
					<input id="spName" name="spName" class="form-control" type="text">
				</div>
			</div>-->

			<div class="form-group">
				<label class="col-sm-3 control-label">审批流程名称：</label>
				<div class="col-sm-8">
					<select name="deptId" th:with="dept=${@dept.getDept()}" class="form-control m-b-none">
						<option value="">---请选择---</option>
						<option th:each="dept : ${dept}" th:text="${dept.deptName}" th:value="${dept.deptId}"></option>
						<!--<option th:each="dept : ${dept}" th:text="${dept.deptName}" th:value="${dept.deptName}"></option>-->
					</select>
				</div>
			</div>
			<!--<div class="form-group">
				<label class="col-sm-3 control-label">部门关联的id：</label>
				<div class="col-sm-8">
					<input id="deptId" name="deptId" class="form-control" type="text">
				</div>
			</div>-->
			<!--<div class="form-group">
				<label class="col-sm-3 control-label">创建时间：</label>
				<div class="col-sm-8">
					<input id="creatTime" name="creatTime" class="form-control" type="text">
				</div>
			</div>-->
			<!--<div class="form-group">
				<label class="col-sm-3 control-label">更新时间：</label>
				<div class="col-sm-8">
					<input id="updateTime" name="updateTime" class="form-control" type="text">
				</div>
			</div>-->
			<div class="form-group">	
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<input id="remark" name="remark" class="form-control" type="text">
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "integral/integralSplc"
		$("#form-integralSplc-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-integralSplc-add').serialize());
	        }
	    }
	</script>
</body>
</html>
